package everydayGrade.t6;

/**
 * @Author: Siantar
 * @Date: 2023-09-01-8:38
 * @Description: 1.0
 */
public class T2240 {
    public long waysToBuyPensPencils(int total, int cost1, int cost2) {
        long res = 0;
        while (total >= 0) {
            res += total / cost2 + 1;
            total -= cost1;
        }
        return res;
    }
}
